import React from "react"
import Loadable from "react-loadable"

const LoadingComponent = ()=>{
    return (
        <div>正在加载中...loading...</div>
    )
}
export default (loader,loading = LoadingComponent)=>{
    return Loadable({
        loader,
        loading
    })
}